//
//  SocketEventHandler.m
//  Socket.IO-Client
//
//  Created by alanwang.dev on 16/8/8.
//  Copyright © 2016年 com.alanwang.dev. All rights reserved.
//

#import "SocketEventHandler.h"

@implementation SocketEventHandler
- (void)executeCallback:(NSArray *)items ack:(NSInteger)ack socket:(SocketIOClient *)socket{
    if (self.callback) {
        SocketAckEmitter *emitter = [[SocketAckEmitter alloc] initWithSocket:socket andAckNum:ack];
        self.callback(items, emitter);
    }
}
@end
